{%include file="header.html"%}
<style>
input {	width: 200px;}
textarea {	width: 350px;	height: 100px;}
</style>
<body>
<div class="fixed-bar">
  <div class="item-title">
    <h3>添加会员等级</h3>
  </div>
</div>
<div class="fixed_bottom">
  <form method="post" action="user_rank.php" enctype="multipart/form-data" id="aspnetForm" name="form1">
    <table style=" width:100%;" cellpadding="0" cellspacing="0" class="table tb-type2">
      <tbody>
        <tr>
          <td class="firtd"> 会员等级名称:</td>
          <td>
          	<input type="text" name="rank_name" value="{%$rank_edit.rank_name%}" placeholder="请输入名称" required>&nbsp;&nbsp;&nbsp;&nbsp;
            <span id="users"></span>  
          </td>
        </tr>
        <tr>
          <td class="firtd"> 积分下限:</td>
          <td><input type="text" name="min" value="{%$rank_edit.min_points%}" maxlength="20" required></td>
        </tr>
        <tr>
          <td class="firtd"> 积分上限:</td>
          <td><input type="text" name="max" value="{%$rank_edit.max_points%}" maxlength="20" required><span id="repassword"></span></td>
        </tr>
         <tr>
          <td class="firtd"> 初始折扣率:</td>
          <td><input type="text" name="discount" value="{%$rank_edit.discount%}" required></td>
        </tr>
        <tr>
          <td class="firtd"> 会员等级:</td>
          <td><input type="text" name="rank_num" value="{%$rank_edit.rank_num%}" required></td>
        </tr>
        <tr>	
          <td class="firtd"> 特殊会员组:</td>
          <td>
            <input style="width:15px" type="radio" name="special_rank" {%if $rank_edit.special_rank eq 0%}checked{%/if%} value="0"> 否 &nbsp;&nbsp;&nbsp;&nbsp;
            <input style="width:15px" type="radio" name="special_rank" {%if $rank_edit.special_rank eq 1%}checked{%/if%} value="1"> 是
          </td>
        </tr>
         <tr>	
          <td class="firtd"> 显示价格:</td>
          <td>
            <input style="width:15px" type="radio" name="show_price" {%if $rank_edit.show_price eq 0%}checked{%/if%} value="0"> 否 &nbsp;&nbsp;&nbsp;&nbsp;
            <input style="width:15px" type="radio" name="show_price" {%if $rank_edit.show_price eq 1%}checked{%/if%} value="1"> 是
          </td>
        </tr> 
        <tr>
          <td class="style1">&nbsp;</td>
          <td>
          	  <input type="hidden" name="act" value="insert">
              <input type="hidden" name="rank_id" value="{%$rank_edit.rank_id%}">
              <a href="JavaScript:void(0);" class="btn" onclick="reset()"><span>重置</span></a>
              <a href="JavaScript:void(0);" class="btn" onclick="$('#tj').click()"><span>确认提交</span></a>
          </td>
        </tr>
      </tbody>
    </table>
    <input type="reset" id="cz" style="display: none;">
    <input type="submit" id="tj" style="display:none;";>
  </form>
</div>
</body>
<script>
    // 重置方法
    function reset(){
        $('input').val('');
        $('textarea').text('');
    }
</script>
</html>